using System;
using System.ComponentModel;
using System.Xml.Serialization;

namespace com.exceptionalsoftware.spacetime.KML
{
	[Serializable()]
    [XmlType(TypeName = "LodType")]
	public class LevelOfDetail : ObjectType
	{
		private float minLod, maxLod, minFade, maxFade;

        public LevelOfDetail()
		{
            this.minLod = 0F;
            this.maxLod = -1F;
            this.minFade = 0F;
            this.maxFade = 0F;
		}

		[XmlElement(ElementName = "minLodPixels", DataType = "float")]
        [DefaultValue(-1F)]
        public float MinLodPixels
		{
            get { return this.minLod; }
            set { this.minLod = value; }
		}

        [XmlElement(ElementName = "maxLodPixels", DataType = "float")]
        [DefaultValue(-1F)]
        public float MaxLodPixels
        {
            get { return this.maxLod; }
            set { this.maxLod = value; }
        }

        [XmlElement(ElementName = "minFadeExtent", DataType = "float")]
        [DefaultValue(0F)]
        public float MinFadeExtent
        {
            get { return this.minFade; }
            set { this.minFade = value; }
        }

        [XmlElement(ElementName = "maxFadeExtent", DataType = "float")]
        [DefaultValue(0F)]
        public float MaxFadeExtent
        {
            get { return this.maxFade; }
            set { this.maxFade = value; }
        }

    }
}